<h2 class='jquery_tab_title'>用户信息修改</h2>
<form class='um' id='modify_form'>
	<input type='hidden' id='user_id' value='<?php echo $user_data['id'] ?>'>
	
	<fieldset>
	<legend>账户信息</legend>
	<p>&nbsp;&nbsp;&nbsp;用户名：<span style='color: #f60;'><?php echo $user_data['name'] ?></span></p>
	<p>用户密码：<input class='input-small' type='text' value='' name='password' id='password'/>&nbsp;&nbsp;&nbsp;(不修改留空)</p>
	<p>注册时间：<span><?php echo date("Y-m-d H:i", $user_data['create_time'])?></span></p>
	<p>用户类型：<span><?php echo $this->common_data->_get_user_category_name_by_cid($user_data['category_id']) . ' - ' . $this->common_data->_get_association_function_by_function_flag($association_data['function_FLAG'])?></span></p>
	<?php if ($association_data['function_FLAG'] == IS_FUNCTION):?>
	</fieldset>
	<?php endif;?>
	
	<?php if ($association_data['function_FLAG'] != IS_FUNCTION):?>
	<p>账户状态：<span class='<?php echo ($association_data['confirm_FLAG'] != ASSOCIATION_VERIFY_PASS) ? 'tips' : ''?>'><?php echo $this->common_data->_get_association_status_by_confirm_flag($association_data['confirm_FLAG'])?></span>
		<?php if ($association_data['confirm_FLAG'] == ASSOCIATION_TO_VERIFY):?>
		<input class='button um' id='submit_verify' type='button' value='提交审核'/>
		
		<div id='um_submit_verify_dialog' title='审核您的部员信息'>
		<p><span class='tips'>请谨慎选取审核结果，审核结果提交后将无法任意修改</span></p>
		</div>
		<script>
		$("#um_submit_verify_dialog").dialog({
			autoOpen: false,
			resizable: false,
			draggable: false,
			width: 300,
			height: 170,
			modal: true,
			buttons: {
				"<?php echo ASSOCIATION_VERIFY_PASS_CHS ?>": function() {
					var user_id = $("#user_id").val();
					var confirm_FLAG = <?php echo ASSOCIATION_VERIFY_PASS ?>;
					Admin.um.submit_verify(user_id, confirm_FLAG);
					$( this ).dialog( "close" );
				},
				"<?php echo ASSOCIATION_VERIFY_FAIL_CHS ?>": function() {
					var user_id = $("#user_id").val();
					var confirm_FLAG = <?php echo ASSOCIATION_VERIFY_FAIL ?>;
					Admin.um.submit_verify(user_id, confirm_FLAG);
					$( this ).dialog( "close" );
				},
				"取消": function() {
					$( this ).dialog( "close" );
				}
			}
		});
		</script>
		<?php endif;?>
	<p>电子邮箱：<input class='input-medium' type='text' value='<?php echo $user_data['email'] ?>' name='email' id='email'/></p>
	</fieldset>
	
	<fieldset>
	<legend>社联成员基本信息</legend>
	<p>姓名：<span><?php echo $association_data['a_name'] ?></span></p>
	<p>性别：<span><?php echo $this->common_data->_get_gender_by_cid($association_data['a_gender'])?></span></p>
	<p>生日：<span><?php echo $this->common->convert_birthday($association_data['a_birth'])?></span></p>
	<p>部门：<span><?php echo $this->common_data->_get_association_category_name_by_cid($association_data['a_category'])?></span></p>
	<p>学号：<span><?php echo $association_data['a_stu_num'] ?></span></p>
	<p>学院专业：<span><?php echo $this->col_pro_data->_get_category_name_by_id($association_data['a_col']) . ' - ' .$this->col_pro_data->_get_category_name_by_id($association_data['a_pro'])?></span></p>
	<p>手机：<span><?php echo $association_data['a_phone'] ?></span></p>
	<p>QQ：<span><?php echo $association_data['a_qq'] ?></span></p>
	</fieldset>
	<?php endif;?>
	
	<input class='button um' id='submit_modify' type='button' value='确定修改'/>
	<input class='button' type='reset' value='重置表单'/>
	<input class='button um' id='back' type='button' value='返回列表'/>
</form>